﻿package com.teaphy.coroutinecrawler.job

import kotlinx.coroutines.*

fun main() = runBlocking {
    println("start")

    val job = launch() {
        println("launch start -->")
        delay(3000)
        println("launch --> end ")
    }

    delay(2000)

    job.cancel(CancellationException("cancel by manual"))

    println("end")
}